package com.example.aicommunityServer.controller;


import com.example.aicommunityServer.entity.po.Area;
import com.example.aicommunityServer.service.IAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 小区,社区内的小区 前端控制器
 * </p>
 *
 * @author author
 * @since 2025-06-13
 */
@RestController
@RequestMapping("/area")
public class AreaController {

    @Autowired
    private IAreaService  areaService;
    @GetMapping("/test")
    public List<Area> test() {
        return areaService.list();
    }
}
